updateEntry

fun updateEntry(id: String, newTitle: String, newContent: String)

Updates the title and content of an existing journal entry.

This method creates a new JournalEntry object with the same ID as the existing one, and the new title and content. It then passes the updated entry to the repository for saving.

Parameters

id

The ID of the journal entry to be updated.

newTitle

The new title for the journal entry.

newContent

The new content for the journal entry.